﻿<%@ Page Title="" Language="C#" MasterPageFile="~/administrator/Admin.Master" AutoEventWireup="true"
    CodeBehind="EditUser.aspx.cs" Inherits="WebApplication.administrator.EditUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPhead" runat="server">
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        var sPageURL = window.location.search.substring(8);
        var splitUrl = sPageURL.split('=');
        if (splitUrl[1] == "Membership") {
            $("#a_Member").addClass("active");
        }
        else {
            $("#a_NotMember").addClass("active");
        }
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPAdmin" runat="server">
<!-- Admin Left Area Start -->
<div class="admin-left">
    <ul>
        <li><a id="a_Member" href="ManageUsers.aspx?Member=true">Membership List</a></li>
        <li><a id="a_NotMember" href="ManageUsers.aspx?Member=false">Without Membership List</a></li>
    </ul>
</div>
<!-- Admin Left Area End -->

    <div class="admin-right">
        <div class="page_title">Details of <asp:Label ID="lblName" runat="server"></asp:Label></div>
        <asp:Label ID="lblMessage" Visible="false" CssClass="success_updation" runat="server" />
        <div class="list_user">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td class="name" style="width:200px;">First Name</td>
                    <td>
                        <asp:TextBox ID="txtFirstName" CssClass="form-text" title="First Name" MaxLength="200"
                            runat="server" TabIndex="1" />
                        <asp:RequiredFieldValidator ID="reqtxtFirstName" runat="server" ForeColor="Red" InitialValue="First Name"
                            ControlToValidate="txtFirstName" ErrorMessage="Please enter First Name" ValidationGroup="Ashu"></asp:RequiredFieldValidator>
                    </td>
                    </tr>
                <tr>
                    <td class="name">Last Name</td>
                    <td>
                        <asp:TextBox ID="txtLastName" CssClass="form-text" title="Last Name" MaxLength="100"
                            runat="server" TabIndex="2" />
                        <asp:RequiredFieldValidator ID="reqtxtLastName" runat="server" ForeColor="Red" InitialValue="Last Name"
                            ControlToValidate="txtLastName" ErrorMessage="Please enter Last Name" ValidationGroup="Ashu"></asp:RequiredFieldValidator>
                    </td>
                    
                </tr>
                <tr>
                    <td class="name">Mobile Number</td>
                    <td>
                        <asp:TextBox ID="txtContactNumber1" CssClass="form-text" title="Mobile Number" MaxLength="100"
                            runat="server" TabIndex="3" />
                        <asp:RequiredFieldValidator ID="reqtxtContactNumber1" runat="server" ForeColor="Red"
                            InitialValue="Contact Number 1" ControlToValidate="txtContactNumber1" ValidationGroup="Ashu" ErrorMessage="Please enter Mobile Number"></asp:RequiredFieldValidator>
                    </td>
                    
                </tr>
                <tr>
                    <td class="name">Landline Number</td>
                    <td>
                        <asp:TextBox ID="txtContactNumber2" CssClass="form-text" title="Landline Number"
                            MaxLength="100" runat="server" TabIndex="4" />
                        <asp:RequiredFieldValidator ID="reqtxtContactNumber2" ForeColor="Red" runat="server"
                            InitialValue="Contact Number 2" ControlToValidate="txtContactNumber2" ErrorMessage="Please enter Landline Number" ValidationGroup="Ashu"></asp:RequiredFieldValidator>
                    </td>
                    
                </tr>
                <tr>
                    <td class="name">Email Address</td>
                    <td>
                        <span>
                            <asp:TextBox ID="txtEmailID" CssClass="form-text" title="Your Email" MaxLength="200"
                                runat="server" TabIndex="5" ReadOnly="true" />
                            <asp:RegularExpressionValidator ID="regtxtEmailID" ErrorMessage="Please enter valid Email ID"
                                runat="server" ValidationExpression="\w+([-+.&#039;]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                ForeColor="Red" ControlToValidate="txtEmailID" ValidationGroup="Ashu"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="reqtxtEmailID" ForeColor="Red" runat="server" InitialValue="Your Email"
                                ControlToValidate="txtEmailID" ErrorMessage="Please enter Email ID" ValidationGroup="Ashu"></asp:RequiredFieldValidator></span>
                    </td>
                    
                </tr>
                <tr>
                    <td class="name">&nbsp;</td>
                    <td>
                        <asp:Button ID="btnSubmit" runat="server" CssClass="reg-blue-round-btn w75" TabIndex="10"
                        OnClick="btnSubmit_Click" Text="Update"  ValidationGroup="Ashu" />
                    </td>
                    
                </tr>
            </table>
        </div>
    </div>
    <!-- Admin right area End -->
    <div class="clear">
    </div>
</asp:Content>
